package com.zzqstart.cateservice.service;

import com.zzqstart.cateservice.entity.CateComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzqstart.cateservice.entity.CommentSearch;

import java.util.Map;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author testjava
 * @since 2023-03-06
 */
public interface CateCommentService extends IService<CateComment> {

    Map<String, Object> getCommentByRecipeId(String recipeId, Long current, Long limit);

    boolean sendComment(CateComment cateComment, String memberId);

    boolean deletedComment(String memberId, String commentId);

    Map<String, Object> getCommentByCondition(CommentSearch searchObj, Long current, Long limit);
}
